package ba03;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 飞哥
 * @version V1.0
 * @package ba03
 * @date 2021/7/30 11:17
 */
public class SpringTest03 {
    @Test
    public void test01() {
        ApplicationContext ac = new ClassPathXmlApplicationContext("ba03/applicationContext.xml");
        Student student = (Student) ac.getBean("myStudent01");
        System.out.println("学生信息：" + student);
    }

}
